<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
  <head>
    <title>所有的权限</title>
    <script type="text/javascript" src="/ItsOAsystem/system/role/js/role.js"></script>
    <script type="text/javascript" src="/ItsOAsystem/js/json2.js"></script>
    <SCRIPT type="text/javascript" src="/ItsOAsystem/js/propotype-1.4.0.js"></SCRIPT>
    <link href="/ItsOAsystem/system/permission/css/pms.css" rel="stylesheet" type="text/css"/>
  </head>
  
  <body>
  <input type="hidden" id="roleid" name="roleid" value="${roleid}"/>
   		<div style=" height:200px; overflow-y:scroll;">
   		 <table id = "pmstable" border="1" align="center" cellspacing="0" width="100%">
   			<tr>
   				<td width="2%"></td>
   				<td width="10%">所属模块</td><td width="10%">权限代码</td><td width="15%">权限名称</td>
   				<td width="40%">URL</td><td width="10%">可控按钮(add,del,update,view)</td>
   			</tr>
   			<s:iterator value="pmsVoList">
   				<tr>
   					<td>
   						<input type ="hidden" id="pmsid" name="pmsid" value = "${pmsid}">
   						<s:if test='isChecked.indexOf("yes")>-1 '>
   							<input type="checkbox" id="chk" name="chk" checked="checked" onclick='checkChange(this)'/>
   						</s:if>
   						<s:else><input type="checkbox" id="chk" name="chk" onclick='checkChange(this)'/></s:else>
   					</td>
   					<td><s:property value="modulename" /></td>
   					<td><s:property value="pmscode" /></td>
   					<td><s:property value="pmsname"/></td>
   					<td><s:property value="url" /></td>
   					<td>
   						<s:if test='btnIds.indexOf("update")>-1&&isChecked.indexOf("yes")>-1'>
   							<input type="text" id="btnCtrl" name="btnCtrl" value="${btnCtrl}" size="22" onchange="updateBtnCtrl(this,${pmsid})"/>
   						</s:if>
   						<s:else><input type="text" id="btnCtrl" name="btnCtrl" value="${btnCtrl}" size="22" readonly="readonly"/></s:else>
   					</td>
   				</tr>
   			</s:iterator>
   		</table>
   		</div>
   </iframe>
  
  </body>
</html>
